package com.example.service;

import com.example.dao.BlogDao;
import com.example.pojo.Blog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogServiceImpl implements BlogService {
    @Autowired
    private BlogDao blogDao;

    @Override
    public List<Blog> selectBlog() {
        return blogDao.findAll();
    }
}
